export function formatFullMessage(message) {
  if (!message) {
    return ''
  }
  const startIndex = message.indexOf('分配部门:')
  if (startIndex !== -1) {
    const beforeText = message.substring(0, startIndex)
    return beforeText
  }
  return message
}

export function getModifyText(message) {
  if (!message) {
    return ''
  }
  const startIndex = message.indexOf('分配部门:')
  if (startIndex !== -1) {
    const beforeText = message.substring(0, startIndex)
    message = message.replace(beforeText, '')
    return message.replace('分配部门:', '')
  }
  return ''
}
